/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.udistrital.framework.adminMenu.modelo;

import java.io.Serializable;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.xml.bind.annotation.XmlRootElement;

/**
 *
 * @author nrodriguez
 */
@Entity
@Table(name = "ampxo")
@XmlRootElement
@NamedQueries({
    @NamedQuery(name = "Ampxo.findAll", query = "SELECT a FROM Ampxo a"),
    @NamedQuery(name = "Ampxo.findByApxide", query = "SELECT a FROM Ampxo a WHERE a.apxide = :apxide"),
    @NamedQuery(name = "Ampxo.findByApxnom", query = "SELECT a FROM Ampxo a WHERE a.apxnom = :apxnom"),
    @NamedQuery(name = "Ampxo.findByApxdsc", query = "SELECT a FROM Ampxo a WHERE a.apxdsc = :apxdsc")})
public class Ampxo implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @Basic(optional = false)
    @Column(name = "apxide")
    private Integer apxide;
    @Column(name = "apxnom")
    private String apxnom;
    @Column(name = "apxdsc")
    private String apxdsc;

    public Ampxo() {
    }

    public Ampxo(Integer apxide) {
        this.apxide = apxide;
    }

    public Integer getApxide() {
        return apxide;
    }

    public void setApxide(Integer apxide) {
        this.apxide = apxide;
    }

    public String getApxnom() {
        return apxnom;
    }

    public void setApxnom(String apxnom) {
        this.apxnom = apxnom;
    }

    public String getApxdsc() {
        return apxdsc;
    }

    public void setApxdsc(String apxdsc) {
        this.apxdsc = apxdsc;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (apxide != null ? apxide.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof Ampxo)) {
            return false;
        }
        Ampxo other = (Ampxo) object;
        if ((this.apxide == null && other.apxide != null) || (this.apxide != null && !this.apxide.equals(other.apxide))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "com.udistrital.ud.modelo.Ampxo[ apxide=" + apxide + " ]";
    }
    
}
